<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/bizappproject/black_look/Black_Look.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/bizappproject/black_look/Black_Look.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name: "Black_Look",
        setup() {
            const table = ref({
                key: "Id",
                footer: "Foots",
                cnName: "三地黑片库查看",
                name: "black_look/Black_Look",
                newTabEdit: false,
                url: "/Black_Look/",
                sortName: "Id"
            });
            const editFormFields = ref({"Qty":"","ProductIdKg":"","QtyKg":"","ProductId":"","ProductIdSd":"","QtySd":"","ProductIdBf":"","QtyBf":"","ProductIdNb":"","QtyNb":"","Unit":"","Spec":"","Remarks":""});
            const editFormOptions = ref([[{"title":"总数量","field":"Qty","type":"decimal"},
                               {"title":"产品代码-空港","field":"ProductIdKg"}],
                              [{"title":"数量-空港","field":"QtyKg","type":"decimal"},
                               {"title":"产品代码-统称","field":"ProductId"}],
                              [{"title":"产品代码-爱科","field":"ProductIdSd"},
                               {"title":"数量-爱科","field":"QtySd","type":"decimal"}],
                              [{"title":"产品代码-北方","field":"ProductIdBf"},
                               {"title":"数量-北方","field":"QtyBf","type":"decimal"}],
                              [{"title":"产品代码-宁波","field":"ProductIdNb"},
                               {"title":"数量-宁波","field":"QtyNb","type":"decimal"}],
                              [{"title":"单位","field":"Unit"},
                               {"title":"规格","field":"Spec"}],
                              [{"title":"备注","field":"Remarks","colSize":12,"type":"textarea"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"Id",title:"键",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Qty",title:"总数量",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ProductIdKg",title:"产品代码-空港",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"QtyKg",title:"数量-空港",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ProductId",title:"产品代码-统称",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"ProductIdSd",title:"产品代码-爱科",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"QtySd",title:"数量-爱科",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ProductIdBf",title:"产品代码-北方",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"QtyBf",title:"数量-北方",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ProductIdNb",title:"产品代码-宁波",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"QtyNb",title:"数量-宁波",type:"decimal",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"Unit",title:"单位",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"Spec",title:"规格",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效(0:否,1:是)",type:"int",width:110,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建人ID",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改人ID",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人名",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyTime",title:"修改时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
